package com.apes.config.flyway;

import org.flywaydb.core.Flyway;
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;

public class ApesFlywayMigrationStrategy implements FlywayMigrationStrategy {
    private Flyway flyway;

    @Override
    public void migrate(Flyway flyway) {
        this.flyway = flyway;
    }

    public void migrate() {
        if (this.flyway == null) return;
        this.flyway.migrate();
    }
}
